package com.fccommunity.ui;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.fccommunity.R;
import com.fccommunity.base.BaseActivity;
import com.fccommunity.widget.TitleBar;

/**
 * Created by yiwei on 16/5/2.
 */
public class CheckInActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_checkin);
    }

    @Override
    protected void initTitle() {

        titleBar.setTitle("个人中心");
        titleBar.setLeftImageResource(R.mipmap.back);
        titleBar.setLeftClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
        TextView textView = (TextView)titleBar.addAction(new TitleBar.TextAction("重新入驻") {
            @Override
            public void performAction(View view) {

            }
        });
        textView.setTextColor(getResources().getColor(R.color.white));
    }

    public static Intent newIntent(Context context){
        Intent intent = new Intent(context, CheckInActivity.class);
        return intent;
    }
}
